package com.atguigu.gulimall.product.controller;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.CouponFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/feign")
public class CouponFeignController {

    @Autowired
    private CouponFeignService couponFeignService;

    @GetMapping("feign")
    public R feign(@RequestParam Map<String, Object> params) {
        return couponFeignService.list(params);
    }

}
